import axios from 'axios'
import{ useState } from 'react'

function Reques(url:string) {
    const [data,setdata] = useState('')
    axios({
        url:url,
        method:'get'
    }).then((res)=>{
        console.log(res.data)
        setdata(res.data)
    })

  return data
}

export default Reques
